﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SnmpForm.DbWrapper.DbDataTypes;

namespace SnmpForm.APConfig
{
    public partial class ucLedLight : UserControl
    {
        Advance_tools _info = null;
        public ucLedLight()
        {
            InitializeComponent();
        }

        public void initWith(Advance_tools info)
        {
            _info = info.Clone();
            Update();
        }

        public Advance_tools Get()
        {
            Update(false);
            return _info;
        }

        public bool Update(bool bView = true)
        {
            if (bView)
            {
                checkBoxLedLight.Checked = _info.led_light;
            }
            else
            {
                _info.led_light = checkBoxLedLight.Checked;
            }
            return true;
        }
    }
}
